package com.drawu.drawuspring.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.drawu.drawuspring.domain.DTO.FocusBehaviorDto;
import com.drawu.drawuspring.domain.DTO.UserDTO;
import com.drawu.drawuspring.domain.DTO.UserLoginDTO;
import com.drawu.drawuspring.domain.Result;
import com.drawu.drawuspring.domain.VO.UserLoginVO;
import com.drawu.drawuspring.domain.VO.UserVO;
import com.drawu.drawuspring.domain.po.Users;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hui
 * @since 2024-10-10
 */
public interface IUsersService extends IService<Users> {


    /**
     * 关注用户  */
    Result focus(FocusBehaviorDto dto);

    /**
     * 登录
     */
    UserLoginVO login(UserLoginDTO userLoginDTO);

    /**
     * 获取用户信息
     * @param
     */
    Result<UserVO> getUser();

    /**
     * 更新用户信息
     */
    Result updateUserData(Users users);


    /**
     * 保存用户信息
     */
    Result saveUserData(UserDTO userDTO);

    /**
     * 上传头像
     */
    Result uploadAvatar(MultipartFile mpFile, Integer userId);

    Result<List<Users>> getUserList();
}
